#!/usr/bin/env python

import datetime
import cPickle as pickle

subscriptions = []
    
def save(filename="subscriptions.pickle"):
    global subscriptions
    pickle.dump(subscriptions, open(filename,"wb"))

def load(filename="subscriptions.pickle"):
    global subscriptions
    subscriptions = pickle.load(open(filename,"rb"))

def add(name,urls):
    global subscriptions
    subscriptions.append({"name": name,"urls":urls,"last_time":datetime.datetime.now()})

    
 
